
package ModelLag;

import java.util.GregorianCalendar;


public class LaneError {
    private String errorCode;
    private String description;
    private GregorianCalendar date;
    private String time;
    private Employee employee;
    private Lane lane;
    
    public LaneError(){
        
    }
    
    public LaneError(String errorCode, String description, GregorianCalendar date, String time, Employee employee, Lane lane)
    {
        this.errorCode = errorCode;
        this.description = description;
        this.date = date;
        this.time = time;
        this.employee = employee; 
        this.lane = lane;
    }
    
    
    public void setErrorCode(String errorCode){
        this.errorCode = errorCode;
    }
    public String getErrorCode(){
        return errorCode;
    }
    
    public void setDescription(String description){
        this.description = description;
    }
    public String getDescription(){
        return description;
    }
    
    public void setDate(GregorianCalendar date){
        this.date = date;
    }

    public GregorianCalendar getDate(){
        return date;
    }
    
    public void setTime(String time){
        this.time = time;
    }
    public String getTime(){
        return time;
    }
    
    public Employee getEmployee(){
        return employee;
    }
    public void setEmployee(Employee employee){
        this.employee = employee;
    }
    
    public Lane getLane(){
        return lane;
    }
    public void setLane(Lane lane){
        this.lane = lane;
    }
    
    @Override
    public String toString(){
        return errorCode;
    }
}
